#include<iostream>
using namespace std;

class Print
{
public:
	Print()
	{
		this->count = 0;
	}

	void operator()(int num)
	{
		cout << num << endl;
		count++;
	}

	int count;
};

void doWork(int num)
{
	cout << num << endl;
}

void test01()
{
	Print print;
	print(100);
	doWork(100);


}

void test02()
{
	Print print;
	print(100);
	print(100);
	print(100);
	print(100);
	print(100);

	cout << print.count << endl;

}


int main()
{
	//test01();
	test02();
	return 0;
}